Objects Reference

textcache::add_picture

Prototype

virtual int add_picture(int sx,int sy,int bytespixel,unsigned char *lm)=0

Parameters

Parameter Type Description
sx int size in x (power of 2)
sy int size in y (power of 2)
bytespixel int bytes per pixel (3 or 4)
lm unsigned char * picture pixels (sx*sy*bytespixel)

Return Value

Returns the newly created picture index.

Remarks

This virtual function is used to add a new picture to the texture manager.